package com.ktwlrj.securitycenter.service;
import com.ktwlrj.core.base.SuperServer;
import com.ktwlrj.securitycenter.controller.args.AddSafeApproveArgs;
import com.ktwlrj.securitycenter.controller.args.SafeApproveArgs;
import com.ktwlrj.securitycenter.dto.SafeApproveDto;
import com.ktwlrj.securitycenter.entity.SafeApproveEntity;

import java.util.List;

/**
 * (FytSafeApprove)业务层接口
 *
 * @author code generation
 * @date 2020-02-24 18:08:14
 * @since JDK1.8
 */
public interface SafeApproveService extends SuperServer<SafeApproveEntity> {
    /**
     * 保存
     *
     * @param args ${@link AddSafeApproveArgs}
     * @throws RuntimeException ${@link RuntimeException}
     * @author code generation
     * @date 2020-02-24 18:08:14
     */
    void save(AddSafeApproveArgs args) throws RuntimeException;
    
    /**
     * 审批保存
     * @param args
     * @throws RuntimeException
     */
    void approveSave(SafeApproveArgs args)throws RuntimeException;

    /**
     * 通过业务id获取审批意见
     *
     * @param businessId 业务id
     * @throws RuntimeException ${@link RuntimeException}
     * @return List<FytSafeApproveDto> ${@link List<FytSafeApproveDto>}
     * @author code generation
     * @date 2020-02-24 18:08:14
     */
    List<SafeApproveDto> selectByBusinessId(String businessId) throws RuntimeException;
    
    /**
     * 通过业务id删除审批意见
     * @param businessId
     * @throws RuntimeException
     */
    void deleteByBusinessId(String businessId) throws RuntimeException;


    /**
     * 通过审批id获取一条信息
     * @param id 审批id
     * @return
     * @throws RuntimeException
     */
    SafeApproveDto getById(String id) throws RuntimeException;
}